package com.lin.linchatgpt.utils;

/**
 * Copyright(C),2022年-11月-30,霖霖
 * FileNames:FileController
 * Author:霖霖
 * Date:2022/11/30 19:22
 * Description:
 * History:
 * <author>       <time>      <version>
 * 霖霖            2022/11/30      版本号
 */
public class ResultCode {
    //默认成功
    public static final int SUCCESS = 20000;
    // 默认失败
    public static final int ERROR = 20001;
    // 邮箱已经存在
    public static final int EMAIL_IS_EXISTS = 20002;
    // 验证码过期 重新获取
    public static final int VALID_CODE_EXPIRED = 20003;
    // 邮箱地址不存在
    public static final int EMAIL_NOT_EXISTS = 20004;

    // openai连接SSE异常
    public static final int OPENAI_SSE_ERROR = 20005;
    // 生成图片失败
    public static final int GENERATE_IMAGE_ERROR = 20006;
    //数据校验失败
    public static final int VALID_FAIL = 30001;

    public static final int QUESTION_TOO_LONG = 20006;


    public static final int UNAUTHENTICATED = 401;

    public static final int UNAUTHORISE = 403;

    public static final int SERVER_ERROR = 500;

    public static final int NOT_FOUND = 404;

    public static final int NOT_IMPLEMENTED = 501;
}
